// pages/information_detail/information_detail.js
const app = getApp(), core = require('../../utils/core');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    news: {},
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let id = options.id, page = this;
    core.get({url: '/xilujob.user/help_detail/id/'+id,success(ret,response){
      page.setData({news: ret.data, content: ret.data.content.replace(/\<img/g,'<img style="width:100%;height:auto;display:block;" ')});
    }});
  },


});
